package com.vote.business.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.vote.business.domain.VoteOption;
import com.vote.common.annotation.Excel;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;

@Data
public class VoteResultVO {

    private Long  voteId;

    private String voteTitle;

    private String voteStatus;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date voteStartTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date voteEndTime;

    private Long participantCount;

    private ArrayList<VoteOption> voteOptions;
}
